﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Chaos.view.board
{
    /// <summary>
    /// Interaction logic for victorypointslot.xaml
    /// </summary>
    public partial class victorypointslot : UserControl
    {
        public victorypointslot()
        {
            InitializeComponent();
        }

        public UIElementCollection Slots 
        { 
            get { return slot_control.Children; }
        }
        
        public int Value
        {
            get
            {
                return (int)GetValue(ValueProperty);
            }
            set
            {
                SetValue(ValueProperty, value);
            }
        }

        public static readonly DependencyProperty ValueProperty =
            DependencyProperty.Register(
                "Value",
                typeof(int),
                typeof(victorypointslot),
                new PropertyMetadata(default(int), OnValuePropertyChanged));

        private static void OnValuePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            // AutocompleteTextBox source = d as AutocompleteTextBox; 
            // Do something... 
        } 


    }
}
